package com.ujiuy.springsessiondemo.Thymeleaf;

import com.ujiuy.springsessiondemo.entity.user;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.ArrayList;
import java.util.List;

@Controller
public class Demo4 {

    @GetMapping("/fourth")
    public String two(Model model){
        model.addAttribute("str1","拼接str1");
        model.addAttribute("str2","拼接str2");
        return "index4";
    }
}
